<template>
  <div class="bg">
    <!-- <iframe id="child" :src="iframeSrc" style="width: 100%; height: 300%" @load="onIframeLoad"></iframe> -->
    <div @click="login()">111</div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      iframeSrc: 'http://36.26.7.134:38080/photovoltaic-manager/index/portal.htm',
    }
  },
  //http://localhost:8080/#/previews
  mounted() {
    // 动态设置 cookie
    document.cookie = 'JSESSIONID=AF0ABF07BE64E7350D4DB35F3E3C31B6; path=/; domain=example.com; Secure; SameSite=None'
  },
  methods: {
    login() {},
  },
}
</script>

<style lang="scss" scoped>
.bg {
  display: flex;
  height: 1200px;
}
</style>
